
<div class="form-group">
        <div class="col-sm-2 control-label">顶部边距</div>
        <div class="col-sm-10">
            <div class="form-group">
                <div class="slider col-sm-8" data-model="pagedata.editdata.margintop" data-min="0" data-max="50"></div>
                <div class="col-sm-4 control-labe count"><span>{{pagedata.editdata.margintop}}</span>px(像素)</div>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-2 control-label">背景颜色</div>
        <div class="col-sm-4">
            <div class="input-group input-group-sm">
                <input class="form-control input-sm diy-bind color" ng-model="pagedata.editdata.background" type="color" />
                <span class="input-group-addon btn btn-info" ng-click="pagedata.editdata.background='#ffffff'" >重置</span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-2 control-label">图标颜色</div>
        <div class="col-sm-4">
            <div class="input-group input-group-sm">
                <input class="form-control input-sm diy-bind color" ng-model="pagedata.editdata.iconcolor" type="color" />
                <span class="input-group-addon btn btn-info" ng-click="pagedata.editdata.iconcolor='#999999'" >重置</span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-2 control-label">文字颜色</div>
        <div class="col-sm-4">
            <div class="input-group input-group-sm">
                <input class="form-control input-sm diy-bind color" ng-model="pagedata.editdata.textcolor" type="color" />
                <span class="input-group-addon btn btn-info" ng-click="pagedata.editdata.textcolor='#333333'" >重置</span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-2 control-label">提示文字颜色</div>
        <div class="col-sm-4">
            <div class="input-group input-group-sm">
                <input class="form-control input-sm diy-bind color" ng-model="pagedata.editdata.remarkcolor" type="color" />
                <span class="input-group-addon btn btn-info" ng-click="pagedata.editdata.remarkcolor='#888888'">重置</span>
            </div>
        </div>
    </div>
    <div class="line"></div>
    <div class="form-items indent" >
        <div class="inner" id="form-items" ng-init="checkarray(pagedata.editdata,'links')">
            <div class="item" ng-repeat="link in pagedata.editdata.links">
                <span class="btn-del" title="删除" ng-click="pagedata.editdata.links.splice($index,1)"></span>
                <div class="item-body">
                    <div class="item-image square">
                        <span class="btn-del" title="清空图标" ng-click="link.iconclass=''"></span>
                        <div class="icon-main">
                            <span class="fa {{link.iconclass}}"></span>
                        </div>
                        <div class="text" ng-click="modal_func(link,'iconclass','tools.icon')">选择图标</div>
                    </div>
                    <div class="item-form">
                        <div class="input-group" style="margin-bottom:0px; ">
                            <span class="input-group-addon">文字</span>
                            <input type="text" class="form-control input-sm diy-bind" ng-model="link.text" placeholder="留空则不显示" maxlength="20">
                            <span class="input-group-addon" style="border-left: 0; border-right: 0;">提示</span>
                            <input type="text" class="form-control input-sm diy-bind" ng-model="link.remark" placeholder="留空则不显示" maxlength="6" style="width: 80px;">
                        </div>
                        <div class="input-group" style="margin-top:10px; margin-bottom:0px; ">
                            <input type="text" class="form-control input-sm diy-bind" placeholder="请选择链接或输入链接地址" ng-model="link.linkurl">
                            <span class="input-group-addon btn btn-default" ng-click="pagedata.choose_url(link,'linkurl')">选择链接</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="btn btn-w-m btn-block btn-info btn-outline" ng-click="pagedata.editdata.links.push({});"><i class="fa fa-plus"></i> 添加一个</div>
    </div>